package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 角色用户父类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Employee {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**员工编号*/
    private String employeeNumber;
    /** 用户名 */
    private String username;
    /** 名称 */
    private String name;
    /** 密码 */
    private String password;
    /**部门id*/
    private Integer departmentId;
    /** 角色标识 */
    private String role;
    /** 新密码 */
    @TableField(exist = false)
    private String newPassword;
    /** 头像 */
    private String avatar;

    @TableField(exist = false)
    private String token;

    @TableField(exist = false)
    private String departmentName;

}
